package com.keming.dao;

import com.keming.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {
    @Select("select * from myblog.t_user where username=#{username}" )
    User findByUsernameAndPassword(String username);
    @Select("select * from myblog.t_user")
    List<User> Selet();
}
